cmake_minimum_required(VERSION 3.10)
project(RabbitMQExample)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 14)

# 查找 SimpleAmqpClient 库
find_package(SimpleAmqpClient REQUIRED)

# 添加生产者和消费者可执行文件
add_executable(producer producer.cpp)
add_executable(consumer consumer.cpp)

# 链接 SimpleAmqpClient 库
target_link_libraries(producer SimpleAmqpClient::SimpleAmqpClient)
target_link_libraries(consumer SimpleAmqpClient::SimpleAmqpClient)
